<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%--
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
--%>

<!DOCTYPE html>

<html lang="zh-cn">
<head>
    <title>新增供应商</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="author" content="陈芳杰（baayso@qq.com）"/>

    <link rel="stylesheet" href="${ pageContext.request.contextPath }/jsp/lib/quick.css"/>
    <link rel="stylesheet" href="${ pageContext.request.contextPath }/jsp/css/public.css"/>

    <%@ include file="/jsp/common/formValidate.jspf" %>

	<script type="text/javascript" src="${ pageContext.request.contextPath }/jsp/lib/jquery.js"></script>
    <script type="text/javascript" src="${ pageContext.request.contextPath }/jsp/lib/jquery.maskedinput.js"></script>

</head>

<body>

<div class="list">

    <div class="add">
        <span class="font_size_13">
            <a href="javascript:void(0);" class="label label-blue">新增账单 &gt;&gt;</a>
        </span>
    </div>

    <div class="col-1-1">
        <form class="form form-stacked" method="post" action="${ pageContext.request.contextPath }/jsp/bill/BillServlet?method=ADD">
            <fieldset>

                <div class="grid">
                    <div class="col-1-2">
                        <label><span style="color: red;">*</span>商品名称：</label>
                        <input type="text" id="name" name="name" placeholder="商品名称">
                        <!-- <span style="color: red;">商品名称不能空！</span> -->
                    </div>

                    <div class="col-1-2">
                        <label>商品数量：</label>
                        <input type="text" id="num" name="num" placeholder="商品数量">
                    </div>

                    <div class="col-1-2">
                        <label>交易单位：</label>
                        <input type="text" id="unit" name="unit" placeholder="交易单位">
                    </div>

                    <div class="col-1-2">
                        <label>交易金额：</label>
                        <input type="text" id="money" name="money" placeholder="交易金额">
                    </div>

                    <div class="col-1-2">
                        <label>是否付款：</label>
                        <select name="isPayment" >
                            <option value="Y">是</option>
                            <option value="N">否</option>
                        </select>
                    </div>

                    <div class="col-1-2">
                        <label>供应商：</label>
                        <select name="supplierId" >
                            <option value="">请选择</option>
                            <c:forEach varStatus="status" var="supplier" items="${ requestScope.supplierList }">
                                <option value="${ supplier.id }">${ supplier.name }</option>
                            </c:forEach>
                        </select>
                    </div>

                    <div class="col-1-2">
                        <label>备注：</label>
                        <textarea id="descriptions" name="descriptions" rows="2" class="x1-large" placeholder="备注"></textarea>
                    </div>

                    <div class="col-1-1 width_830">
                        <button type="submit" class="button-blue">提交数据</button>
                        <a href="${ pageContext.request.contextPath }/jsp/bill/BillServlet?method=LIST" class="button button-red">返回</a>
                    </div>
                </div>

            </fieldset>
        </form>
    </div>

</div>

</body>

</html>